/*!
    \copyright  Copyright (c) 2023 Qualcomm Technologies International, Ltd.
                All Rights Reserved.
                Qualcomm Technologies International, Ltd. Confidential and Proprietary.
    \version    
    \file       google_finder_pddu.h
    \addtogroup  google_finder
    \brief      Header for the Persistent Device Data User (PDDU) implemenatation of Google Finder.
    @{
*/
#ifndef GOOGLE_FINDER_PDDU_H
#define GOOGLE_FINDER_PDDU_H

#ifdef INCLUDE_GOOGLE_FINDER
#include "google_finder_private.h"
#include "device_db_serialiser.h"

typedef struct
{
    uint8 eik[GOOGLE_FINDER_EIK_LEN];
    uint32 beacon_time_counter;
} google_finder_pddu_t;

void googleFinder_SerialisePersistentDeviceData(device_t device, void *buf, pdd_size_t offset);
void googleFinder_DeserialisePersistentDeviceData(device_t device, void *buf, pdd_size_t data_length, pdd_size_t offset);
pdd_size_t googleFinder_GetDeviceDataLen(device_t device);

#endif /* INCLUDE_GOOGLE_FINDER */
#endif /* GOOGLE_FINDER_PDDU_H */
/**! @} !*/